package club.cearnach.core.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 阮胜
 * @version 1.0
 * @date 2018/6/12 14:23
 */
@Data
@Component
@ConfigurationProperties(prefix = "ruan.movie.web")
public class MovieWebProperties {
    private Upload upload = new Upload();

    @Data
    public class Upload {
        /**
         * 图片上传路径,暂时设置成绝对路径,不需要使用servlet相对路径,因为之后会使用独立的图片服务器代替
         */
        private String movieImagePath = "d:/movie/image/";
        private String movieVideoPath = "d:/movie/video/";
        private String personImagePath = "d:/movie/person/";
        private String movieNewsImagePath = "d:/movie/news/";
    }
}
